<?php

class Messages {
    var $messages;

    function Messages($locale) {
        $this->messages = require_once $_SERVER['DOCUMENT_ROOT'].'@@relative-path-on-disk-from-document-root@@/php/messages/Messages_'.$locale.'.php';
    }

    function get($s) {
        if (isset($this->messages[$s])) {
            return $this->messages[$s];
        } else {
            return '??' . $s . '??';
        }
    }
}
?>